//
//  BaseViewController.h
//  BaseAPP
//
//  Created by Evisu on 16/12/2.
//  Copyright © 2016年 evisum. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef void(^rightBtnBlock)(void);
typedef void(^leftBtnBlock)(void);

@interface BaseViewController : UIViewController

//左右barButtonItem Block
@property (nonatomic, copy)rightBtnBlock rightBtnBlock;

@property (nonatomic, copy)leftBtnBlock leftBtnBlock;

/**
 *  添加导航栏左边按钮
 *
 *  @param imageName 图片名字
 */
- (void)showLeftBarButtonWithImageName:(NSString *)imageName;

/**
 *  添加导航栏右边按钮
 *
 *  @param imageName 图片名字
 */
- (void)showRightBarButtonWithImageName:(NSString *)imageName;

/**
 *  隐藏导航栏
 */
- (void)hideNavigationBar;

/**
 *  显示导航栏
 */
- (void)showNavigationBar;

- (void)setAutomaticallyAdjustsScrollViewInsets:(BOOL)automaticallyAdjustsScrollViewInsets;

@end
